<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.threed.convert.commandline.override">

  <require>org.nuxeo.ecm.platform.threed.convert.commandline</require>

  <extension point="command" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">

    <command enabled="true" name="blender_pipeline">
      <commandLine>docker</commandLine>
      <testParameterString>pull nuxeo/blender</testParameterString>
      <parameterString>run --name #{name} --volumes-from #{data} nuxeo/blender
        -P /scripts/#{scriptFile} -- --input /in/#{inFile} --outdir /out --operators #{operators}
        --renderids #{renderIds} -li #{lodIds} -pp #{percPoly} -mp #{maxPoly} -d #{dimensions} -c #{coords}
      </parameterString>
      <installationDirective>Please, install docker (https://www.docker.com/)
      </installationDirective>
    </command>
    <command enabled="true" name="collada2gltlf">
      <commandLine>docker</commandLine>
      <testParameterString>pull nuxeo/collada2gltf</testParameterString>
      <parameterString>run --name #{name} --volumes-from #{data} nuxeo/collada2gltf
        -f /in/#{inFile} -o /out/#{outFile} -e</parameterString>
      <installationDirective>Please, install docker (https://www.docker.com/)
      </installationDirective>
    </command>
    <command enabled="true" name="create_container">
      <commandLine>docker</commandLine>
      <testParameterString>version</testParameterString>
      <parameterString>create --name #{name} #{image} </parameterString>
      <installationDirective>Please, install docker (https://www.docker.com/)
      </installationDirective>
    </command>
    <command enabled="true" name="remove_container">
      <commandLine>docker</commandLine>
      <testParameterString>version</testParameterString>
      <parameterString>rm #{name} </parameterString>
      <installationDirective>Please, install docker (https://www.docker.com/)
      </installationDirective>
    </command>
    <command enabled="true" name="copy_container">
      <commandLine>docker</commandLine>
      <testParameterString>version</testParameterString>
      <parameterString>cp #{source} #{destination}</parameterString>
      <installationDirective>Please, install docker (https://www.docker.com/)
      </installationDirective>
    </command>
    <command enabled="true" name="useruid">
      <commandLine>id</commandLine>
      <testParameterString>-u</testParameterString>
      <parameterString>-u #{username}</parameterString>
      <installationDirective>Please, install id command</installationDirective>
    </command>
  </extension>

</component>
